<%@page contentType="text/html; charset=utf-8"%>
<%@ include file="../inc/TagLibs.jsp"%>
<c:set var="pageTitle" value="文件说明" />
<%@ include file="../inc/Title.jsp"%>
<head>
<link rel="stylesheet" type="text/css" href="/css/base.css" />
<script language="javascript">
	function doSave(flag){
		document.getElementById("buttonDiv").style.display="none";
		document.getElementById("waitDiv").style.display="";
		document.getElementById("continue_flag").value=flag;
		frm.submit();
	}
	function doCancel(){
		parent.ClosePop();
	}
	function showMe(){
		showFormErrorMsg();
		document.getElementById("mark").focus();
	}
</script>
</head>
<body oncontextmenu="return false" onLoad="showMe();"  class="sheet modal-dialog" style=" padding-top:15px;">
<div class="sheet-main" id="bodyDiv" style="width:475px;">
	<form name="frm" method="post">
	  <div class="sheet-list" style="width:100%">
	    <div class="modal-main search-business">
	    	<div style="width:100%;">
				<c:if test="${id==null || id==''}"><c:set var="pageTopTitle" value="新增文件说明" /></c:if>
				<c:if test="${id!=null && id!=''}"><c:set var="pageTopTitle" value="编辑文件说明" /></c:if>
				<%@ include file="../inc/PageTop.jsp"%> 
				<table border="0" cellspacing="1" cellpadding="1" align="center" class="table-a">
					<tr>
				      	<th><span class="MustInput">*</span>文件说明：</th> 
				      	<spring:bind path="command.mark">
				      	<td>
				      		<input type="text"  class="TextBox" style="width:260px" maxlength="50" onKeyUp="goNextInput('sequenceCode');" id="${status.expression}" name="${status.expression}" value="<c:out value="${status.value}" />">
							  <script language="javascript">
								setFormErrorMsg('<c:out value="${status.errorMessage}" />',1,'requireContent');
					      	  </script>
				     	</td>
				     	</spring:bind>
					</tr>
					<tr>
				      	<th><span class="MustInput">*</span>序号：</th> 
				      	<spring:bind path="command.sequenceCode">
				      	<td>
				      		<input type="text"  class="TextBox" maxlength="15" onKeyUp="goNextInput('');" id="${status.expression}" name="${status.expression}" value="${status.value}">
							<c:if test="${status.errorCode=='typeMismatch'}">
							  <script language="javascript">
								setFormErrorMsg('序号只能输入整数',2,'sequenceCode');
							  </script>
							</c:if>
				     	</td>
				     	</spring:bind>
					</tr>
				</table>
			</div>
	  	</div>
	  </div>
		<div class="modal-buttom" id="buttonDiv">
			<input type="button" class="buttom-a" value=" 保 存 " onClick="doSave('0');">
			<input type="button" class="buttom-a" value="保存并新增" onClick="doSave('1');">
			<input type="button" class="buttom-a" value=" 取 消 " onClick="doCancel();">
			<input type="hidden" name="continue_flag" id="continue_flag" value="0">
		</div>
		<div class="modal-buttom" id="waitDiv" style="display:none">
			<span style="color:#ffffff">请稍候...</span>
		</div>
	</form>
</div>		
</body>
</html>